<?php
/**
 * Created by PhpStorm.
 * User: coolinmind
 * Date: 07/11/2018
 * Time: 14:28
 */

namespace App\Services\Finance;


use App\Services\ProjectValidate;

class ValidateRecord extends ProjectValidate
{

    /**
     * 自定义子类初始化
     * @param array $initData
     * @return mixed
     */
    public function initValidate($initData = [])
    {
        // TODO: Implement initValidate() method.
    }

    public $rules = [
        'year'            => 'required',
        'month'            => 'required',
    ];


    public $messages = [

    ];

    /**
     * @var array 上面规则中定义的 key 的名字
     */
    public $attributes = [

    ];
}